package com.fesine.ch02.twoStop;

/**
 * @description: 类描述
 * @author: Fesine
 * @createTime:2016/7/6 19:29
 * @update:修改内容
 * @author: Fesine
 * @updateTime:2016/7/6 19:29
 */
public class Service {
    synchronized public void methodA() {
        System.out.println("methodA begin");
        boolean isContinueRun = true;
        while (isContinueRun) {

        }
        System.out.println("methodA end");
    }

    synchronized public void methodB() {
        System.out.println("methodB begin");
        System.out.println("methodB end");
    }
}
